<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>协议弹窗</title>
	<!--<link rel="stylesheet" type="text/css" href="../../../layui-v2.3.0/layui/css/layui.css">-->
	<link rel="stylesheet" type="text/css" href="{{URL::asset('common/css/commonality.css')}}">
	<link rel="stylesheet" type="text/css" href="{{URL::asset('css/music/amendSP.css')}}">
	<link rel="stylesheet" href="{{URL::asset('/css/app.css')}}">
</head>
<body>
<div class="box_3">
	@include('flash::message')
	<form action="{{url('/admin/updateAgreement/'.$data['id'])}}" method="post" enctype="multipart/form-data">
		{{csrf_field()}}
		<p>签约时间：
		<input name="fix_date" type="date" />
		<i class="icon iconfont rili">&#xe614;</i>
		<select name="fix_choose" id="">
			<option value="">约期选择</option>
			<option value="1">1年</option>
			<option value="2">2年</option>
			<option value="3">3年</option>
			<option value="4">5年</option>
			<option value="5">7年</option>
			<option value="6">10年</option>
		</select>
		</p>
		<p><label for="">上传协议：</label>

		<input type="file" class="upload_file" name="agree_record" onchange="doChange(this)" style="display:none;"/>
		<input class="photoCover" type="text" style="">
		<input type="button" onclick="$('input[class=upload_file]').click();" class="mybutton" value="浏览" style="width:80px;margin:0 10px;cursor:pointer;"/>
		</p>
		<input type="submit" value="确定更新" class="update" style="cursor:pointer;">
	</form>
</div>
</body>
<script type="text/javascript" src="{{URL::asset('common/js/jquery-1.10.1.min.js')}}"></script>
<script type="text/javascript" src="{{URL::asset('js/music/amendSP.js')}}"></script>
<script type="text/javascript" src="{{URL::asset('js/layui-v2.3.0/layui/layui.all.js')}}"></script>
<script>
	layui.use('laypage', function(){
		var laypage = layui.laypage;
		//执行一个laypage实例
		laypage.render({
			elem: 'test1' //注意，这里的 test1 是 ID，不用加 # 号
			,count: 50 //数据总数，从服务端得到
			,btn:['确定更新','取消']
				,yes:function(index,layero){
			}
		});
	});
    function doChange(file){
        var upload_file = $.trim($(".upload_file").val());    //获取上传文件
        $('.photoCover').val(upload_file);     //赋值给自定义input框
    }
</script>
</html>